﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DataAccessLayer;
using GlobalObjects;
using System.Collections.Generic;

namespace DataAccessLayerTests
{
    [TestClass]
    public class ContactUsEntityTests
    {
        [TestMethod]
        public void insertToContactUs_DAL_valid()
        {
            //arrrange
            ContactUsEntity contactUsE = new ContactUsEntity();
            ContactUs contact = new ContactUs();
            contact.Fullname = "Pejman A";
            contact.Email = "pejiks@yahoo.com";
            contact.Subject = "Test";
            contact.Message = "Testing message";
            contact.Time = DateTime.Parse("26/07/2013");
            //action
            contactUsE.insertToContactUs_DAL(contact);
            //Assert check DB
        }
    }
}
